import request from '@/utils/request'

// 查询科目树
export function queryFinSubjectTree(data) {
  return request({
    url: '/tFinSubjectTree/queryFinSubjectTree',
    method: 'post',
    data
  })
}
// 新增科目树分组
export function insertFinNode(data) {
  return request({
    url: '/tFinSubjectTree/insertFinNode',
    method: 'post',
    data
  })
}
// 修改科目树分组
export function updateFinNode(data) {
  return request({
    url: '/tFinSubjectTree/updateFinNode',
    method: 'post',
    data
  })
}
// 删除科目树分组
export function delFinNode(data) {
  return request({
    url: '/tFinSubjectTree/delFinNode',
    method: 'post',
    data
  })
}
// 新增科目
export function insertSubject(data) {
  return request({
    url: '/tFinSubject/insertSubject',
    method: 'post',
    data
  })
}
// 根据科目分组查询科目列表
export function querySubjectList(data) {
  return request({
    url: '/tFinSubject/querySubjectList',
    method: 'post',
    data
  })
}
// 修改科目分组查询科目列表
export function updateSubject(data) {
  return request({
    url: '/tFinSubject/updateSubject',
    method: 'post',
    data
  })
}
// 科目详情
export function querySubjectDetails(params) {
  return request({
    url: '/tFinSubject/querySubjectDetails',
    method: 'get',
    params
  })
}
// 科目详情
export function querySubjectDetailsByfrealId(params) {
  return request({
    url: '/tFinSubject/querySubjectDetailsByfrealId',
    method: 'get',
    params
  })
}
// 批量反提交科目
export function notsubmitSubjects(data) {
  return request({
    url: '/tFinSubject/notsubmitSubjects',
    method: 'post',
    data
  })
}
// 批量提交科目
export function submitSubjects(data) {
  return request({
    url: '/tFinSubject/submitSubjects',
    method: 'post',
    data
  })
}
// 批量审核科目
export function reviewSubjects(data) {
  return request({
    url: '/tFinSubject/reviewSubjects',
    method: 'post',
    data
  })
}
// 批量反审核科目
export function notreviewSubjects(data) {
  return request({
    url: '/tFinSubject/notreviewSubjects',
    method: 'post',
    data
  })
}
// 批量删除科目
export function delSubjects(data) {
  return request({
    url: '/tFinSubject/delSubjects',
    method: 'post',
    data
  })
}
// 科目类别
export function querySubjectTypeList(data) {
  return request({
    url: '/tFinSubjectTree/querySubjectTypeList',
    method: 'post',
    data
  })
}
// 初始化科目
export function initSubject(data) {
  return request({
    url: '/tFinSubject/initSubject',
    method: 'post',
    data
  })
}
// 科目余额表
// 查询科目余额表
export function createSubjectAmountTable(data) {
  return request({
    url: '/tFinSubjectCensus/createSubjectAmountTableList',
    method: 'post',
    data
  })
}
// 总分类账
export function generalLedger(data) {
  return request({
    url: '/tFinSubjectCensus/GeneralLedger',
    method: 'post',
    data
  })
}
// 科目余额表用 科目列表
export function querySubList(data) {
  return request({
    url: '/tFinSubject/querySubList',
    method: 'post',
    data
  })
}
// 科目余额表明细
export function queryCensusDetailList(data) {
  return request({
    url: '/tFinSubjectCensus/queryCensusDetailList',
    method: 'post',
    data
  })
}
// 查询核算维度列表
export function queryFinDismensionList(data) {
  return request({
    url: '/tFinDimension/queryFinDismensionList',
    method: 'post',
    data
  })
}
// 资产负债表
export function balanceSheetList(data) {
  return request({
    url: '/tFinSubjectCensus/balanceSheetList',
    method: 'post',
    data
  })
}
// 现金流量表
export function cashFlowSheetList(data) {
  return request({
    url: '/tFinSubjectCensus/cashFlowSheetList',
    method: 'post',
    data
  })
}
// 现金流量表
export function mainCashFlowSheetList(data) {
  return request({
    url: '/tFinSubjectCensus/mainCashFlowSheetList',
    method: 'post',
    data
  })
}
// 利润表
export function profitSheetList(data) {
  return request({
    url: '/tFinSubjectCensus/profitSheetList',
    method: 'post',
    data
  })
}
// 银行存款日记账
export function bankDiaryList(data) {
  return request({
    url: '/tFinSubjectCensus/bankDiaryList',
    method: 'post',
    data
  })
}
// 现金银行存款日记账
export function cashDiaryList(data) {
  return request({
    url: '/tFinSubjectCensus/cashDiaryList',
    method: 'post',
    data
  })
}
// 明细分类账
export function GeneralLedgerDetailList(data) {
  return request({
    url: '/tFinSubjectCensus/GeneralLedgerDetailList',
    method: 'post',
    data
  })
}
// 现金流量查询
export function mainCashFlowSheetListDetail(data) {
  return request({
    url: '/tFinSubjectCensus/mainCashFlowSheetListDetail',
    method: 'post',
    data
  })
}

